package ui;

import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;

public class WithdrawlMenu extends JPanel {

	
	private JLabel lblWithdrawlCash;
	private JLabel label1;
	private JLabel label2;
	private JLabel label3;
	private JLabel label4;
	private JLabel label5;
	private JLabel label6;
	
	private JButton button1;
	private JButton button2;
	private JButton button3;
	private JButton button4;
	private JButton button5;
	private JButton btnCancel;
	private JButton btnFrw;
	private JButton btnBack;
	
	private String withdrawl;
	/**
	 * Create the panel.
	 */
	public WithdrawlMenu() {
		setLayout(null);
		
		JLabel lblWithdrawlMenu = new JLabel("Withdrawl Menu");
		lblWithdrawlMenu.setBounds(161, 20, 129, 30);
		add(lblWithdrawlMenu);
		
		label1 = new JLabel("1");
		label1.setBounds(29, 91, 24, 16);
		add(label1);
		
		label2 = new JLabel("2");
		label2.setBounds(29, 115, 24, 16);
		add(label2);
		
		label3 = new JLabel("3");
		label3.setBounds(29, 142, 29, 16);
		add(label3);
		
		label4 = new JLabel("4");
		label4.setBounds(29, 170, 24, 16);
		add(label4);
		
		label5 = new JLabel("5");
		label5.setBounds(29, 198, 24, 16);
		add(label5);
		
		label6 = new JLabel("6");
		label6.setBounds(29, 223, 24, 16);
		add(label6);
		
		button1 = new JButton("$20");
		button1.setBounds(102, 90, 82, 17);
		add(button1);
		
		button2 = new JButton("$40");
		button2.setBounds(102, 116, 82, 17);
		add(button2);
		
		button3 = new JButton("$60");
		button3.setBounds(102, 143, 82, 16);
		add(button3);
		
		button4 = new JButton("$100");
		button4.setBounds(102, 171, 82, 16);
		add(button4);
		
		button5 = new JButton("$200");
		button5.setBounds(102, 199, 82, 17);
		add(button5);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setBounds(102, 224, 82, 16);
		add(btnCancel);
		
		btnFrw = new JButton("<");
		btnFrw.setBounds(6, 251, 117, 29);
		add(btnFrw);
		
		btnBack = new JButton(">");
		btnBack.setBounds(314, 251, 117, 29);
		add(btnBack);

	}
	
	public String getWithdrawl(){
		withdrawl =lblWithdrawlCash.getText();
		return withdrawl;
	}
	
		public JButton getbutton1(){
		return button1;
		}
		public JButton getbutton2(){
			return button2;
		}
		public JButton getbutton3(){
			return button3;
		}
		public JButton getbutton4(){
			return button4;
		}
		public JButton getbutton5(){
			return button5;
		}
		public JButton getbtnCancel(){
			return btnCancel;
		}
		public JButton getbtnFrw(){
			return btnFrw;
		}
		public JButton getbtnBack(){
			return btnBack;

}


	
	public void addActionListener(ActionListener l) {
		button1.addActionListener(l);
		button2.addActionListener(l);
		button3.addActionListener(l);
		button4.addActionListener(l);
		button5.addActionListener(l);
		btnCancel.addActionListener(l);
		btnFrw.addActionListener(l);
		btnBack.addActionListener(l);
	
		
	}
}